﻿/*
 * Microsoft .NET  2.0+ version of Sphinx searchd client (Sphinx API)
 * 
 * Copyright (c) 2009, Shaun Berryman
 * All rights reserved
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License. You should have
 * received a copy of the GPL license along with this program; if you
 * did not, you can find it at http://www.gnu.org/
 */

using System;
using System.Collections.Generic;
using System.Text;

namespace SphinxSearchApi.Extension
{
    public static class Radian
    {
        public static double ToRadians(this double degrees)
        {
            return degrees * (Math.PI / 180);
        }

        public static double ToDegrees(this double radians)
        {
            return radians * (180 / Math.PI);
        }
    }
}
